package com.whmall.service.crm.enumeration;

public enum CompanyEnterpriseCompanyTypeEnum {

    /** 非企业客户 */
    NON_ENTERPRISE_COMPANY(0, "非企业客户"),
    /** 企业客户 */
    ENTERPRISE_COMPANY(1, "企业客户（非贸易）"),
    /** 贸易客户 */
    TRADE_CLIENT(2, "企业客户（贸易）")
    ;

    public static CompanyEnterpriseCompanyTypeEnum fromValue(int value) {
        for (CompanyEnterpriseCompanyTypeEnum anEnum : values()) {
            if (anEnum.getValue() == value) {
                return anEnum;
            }
        }
        throw new UnsupportedOperationException("不支持的状态=" + value);
    }

    CompanyEnterpriseCompanyTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }
    private final int value;

    private final String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

}
